import { addBlogDao, queryBlogByIdDao, queryBlogsByConditonDao, updateBlogDao, deleteBlogDao } from '../dao/blogDao';

export const addBlogService = async (blogInfo) => {
  // 校验参数

  return await addBlogDao(blogInfo)
}

export const queryBlogByIdService = async (id) => {
  // 校验参数
  return await queryBlogByIdDao(id)
}

export const queryBlogsByConditonService = async (condition) => {
  return await queryBlogsByConditonDao(condition)
}

export const updateBlogService = async (id, blogInfo) => {
  return await updateBlogDao(id, blogInfo)
}

export const deleteBlogService = async (id) => {
  return await deleteBlogDao(id)
}